<template>
	<view>
		<view class="header" :class="scroll == true ? 'scrollStyle' : ''">
			<view class="logo">
				<image src="../../static/logo.png" mode="widthFix"></image>
			</view>
			<view class="text">
				<view class="t02">{{subAddress}}</view>
			</view>
			<view class="copy" @click="maskChange(true)">{{Lang.lang('share')}}</view>
			<!-- <view class="bsc_box">
				<picker @change="choiceBsc" :value="bscIndex" :range="bscData" :range-key="'name'">
					<view class="bsc_auto">
						<view class="bsci">
							<image src="../../static/logo02.png" mode="widthFix"></image>
						</view>
						<view class="bsc">{{bscText}}</view>
					</view>
				</picker>
			</view> -->
			<view class="lang">
				<picker @change="choiceLang" :value="langIndex" :range="Lang.lang('langData')" :range-key="'name'">
					<image src="../../static/lang.png" mode="widthFix"></image>
				</picker>
			</view>
			<view class="more" @tap="autoListPage">
				<image src="../../static/more.png" mode="widthFix"></image>
			</view>
			<!-- <view class="signin" @tap="autoSignin" v-if="!login">登錄</view>
			<view class="signin02" v-if="login">
				<image src="../../static/login.png" mode="widthFix"></image>
			</view> -->
		</view>
		
		<view class="nav_pupu" v-if="pupu">
			<view class="nav_box" :class="pupu == false ? 'nav_index' : ''">
				<view class="close iconfont" @tap="autoListPage">&#xe608;</view>
				<view class="nav_list">
					<block v-for="(item, index) in navlist" :key="index">
						<view class="list" :data-url="item.url" @click="gotopage">
							<view class="icon">
								<image :src="item.img" mode="widthFix"></image>
							</view>
							<view class="name">{{ item.name }}</view>
							<view class="arrow iconfont">&#xe601;</view>
						</view>
					</block>
				</view>
			</view>
		</view>
		
		<view class="mask" v-if="mask">
			<view class="m_box">
				<view class="m_item">
					<view class="iconfont close" @click="maskChange(false)">&#xe608;</view>
					<view class="m_tit">{{Lang.lang('share_friends')}}</view>
					<view class="m_qr_itme">
						<!-- <image class="qr_code" src="../../static/index/qr_img.png"></image> -->
						<uv-qrcode ref="qrcode" :options="options2" :value="shareUrl"></uv-qrcode>
					</view>
					<view class="m_t1">{{Lang.lang('share_connection')}}</view>
					<view class="m_t2">{{shareUrl}}</view>
					<view class="btn" @click="copyText" :data-txt="shareUrl">{{Lang.lang('copy_connection_registration')}}</view>
				</view>
			</view>
		</view>
		
		<view class="pupu_box" v-if="login_win">
			<view class="pupu_show" @tap.stop="">
				<view class="title">{{Lang.lang('loginTile')}}</view>
				<view class="text">{{Lang.lang('loginText')}}</view>
				<view class="input"><input type="text" v-model="myAddress"  /></view>
				<view class="text">{{Lang.lang('loginText02')}}</view>
				<view class="input"><input type="text" v-model="inviteId"  /></view>
				<view class="menu_box">
					<!-- <view class="menu" @tap="autoSignin">取消</view> -->
					<view class="menu001" @click="register()">{{Lang.lang('login')}}</view>
				</view>
			</view>
		</view>

		<view class="content_box">

			<view class="trading_box">
				<view class="trading_title">交易</view>
				<view class="trading_content">
					<view class="slider">
						<slider :value="sliderShow" activeColor="#45C324" :max="sliderValue" backgroundColor="#666666" block-size="28" @change="sliderChange" step="5" />
					</view>
					<view class="slider_text">
						<view class="text">0</view>
						<view class="text">50</view>
						<view class="text">100</view>
						<view class="text">150</view>
						<view class="text">200</view>
					</view>
					
					<view class="slider_show">
						<input type="text" value="" v-model="sliderShow" />
						<view class="text"></view>
					</view>
					
					<view class="compare_title">
						<view class="title">
							<view class="icon">
								<image src="../../static/icons/icon01.png" mode="widthFix"></image>
							</view>
							<view class="text">USDT</view>
						</view>
						<view class="title">						
							<view class="text">LSD</view>
							<view class="icon">
								<image src="../../static/icons/icon02.png" mode="widthFix"></image>
							</view>
						</view>
					</view>
					
					<view class="convert_box">
						<view class="convert">
							<input type="text" value="" v-model="usdtNumberCount"/>
						</view>
						<view class="rule">余额：{{usdtBalance}}</view>
						<image src="../../static/add.png" mode="widthFix"></image>
						<view class="convert">
							<input type="text" value="" v-model="lsdNumberCount"/>
						</view>
						<view class="rule">余额：{{lsdBalance}}</view>
					</view>
					
					

					<view class="confirm" @click="buyfuwen">立即支付</view>
				</view>

			</view>

			<view class="page_title">
				<view class="title">{{Lang.lang('transaction_records')}}</view>				
			</view>
			
			<view class="team_list team_top">
				<view class="name">USDT</view>
				<view class="num">LSD</view>
				<view class="num">{{Lang.lang('rune')}}</view>
				<view class="num">{{Lang.lang('purchase_time')}}</view>
			</view>
			
			<view class="list_auto">
				<block v-for="(item, index) in tradingList" :key="index">
						<view class="team_list">
							<view class="name">{{item.usdt_money}}</view>
							<view class="grade">{{item.lsd_money}}</view>
							<view class="grade">{{item.money}}</view>
							<view class="grade">{{item.created_at}}</view>
						</view>
				</block>
			</view>
			

		</view>

		<view class="footer">
			<view class="title">{{Lang.lang('page_title_text19')}}</view>
			<view class="friend_box">
				<block v-for="(item, index) in footer" :key="index">
					<view class="friend">
						<image :src='item.img' mode="heightFix"></image>
					</view>
				</block>
			</view>
		
			<view class="other_box">
				<block v-for="(item, index) in other" :key="index">
					<view class="other">
						<image :src='item.img' mode="heightFix"></image>
					</view>
				</block>
			</view>
		
			<view class="rule_box">
				<view class="rule">
					<view class="t01">{{Lang.lang('page_title_text20')}}</view>
					<view class="t02">Cex</view>
					<view class="t02">Dex</view>
					<view class="t02">{{Lang.lang('page_title_text21')}}</view>
					<view class="t02">{{Lang.lang('page_title_text22')}}</view>
					<view class="t02">NFT</view>
				</view>
				<view class="rule"></view>
				<view class="rule">
					<view class="t01">{{Lang.lang('page_title_text23')}}</view>
					<view class="t02">{{Lang.lang('page_title_text24')}}</view>
					<view class="t02">{{Lang.lang('page_title_text25')}}</view>
					<view class="t02">{{Lang.lang('page_title_text26')}}</view>
					<view class="t02">{{Lang.lang('page_title_text19')}}</view>
					
				</view>
			</view>
		
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
					usdtNumberCount:'0',
					lsdNumberCount:'0',
					sliderShow:'50',
					sliderValue:'200',
				
					language:'zh',
					receiver:'',
					usdt_change_lsd:'',
					lsdInput:'',
					usdtInput:'',
					lsdBalance:'0.00',
					login_win:false,
					usdtBalance:'0.00',
					mask:false,
					loginId:'',
					inviteId:'',
					injected: false,
					injectTimes:0,
					address:'',
					myAddress:'',
					subAddress:'',
					shareUrl:'',
					isReg:false,
					usdtNumberBefore:'0',
					usdtNumber:'0',
					lsdNumber:'0',
					urldata:'fsfsgdhfhfghfghfghgf',
					login:false,
					scroll: false,
					pupu: false,
					langIndex: '',
					fuwenPrice:[],
					options2:{
						size:120,
						width:150,
						height:150
					},
					langData: [{
							name: 'kr',
						},
						{
							name: 'en',
						},
						{
							name: 'tc',
						}
					],
					bscIndex: 1,
					bscData: [{
							name: 'BSC',
						},
						{
							name: 'BSC02',
						},
						{
							name: 'BSC03',
						}
					],
				
					bscText: 'BSC',
					navlist: [{
							img: '../../static/menus/menu01.png',
							name: '首頁',
							url: '/pages/index/index'
						},
						{
							img: '../../static/menus/menu02.png',
							name: '交易',
							url: '/pages/trading/trading'
						},
						{
							img: '../../static/menus/menu08.png',
							name: '閃兌',
							url: '/pages/flash/flash'
						},	
						{
							img: '../../static/menus/menu07.png',
							name: '团队',
							url: '/pages/team/team'
						},
						// {
						// 	img: '../../static/menus/menu03.png',
						// 	name: '充幣',
						// 	url: '/pages/filling/filling'
						// },
						{
							img: '../../static/menus/menu04.png',
							name: '提幣',
							url: '/pages/mention/mention'
						},
						{
							img: '../../static/menus/menu05.png',
							name: '資產',
							url: '/pages/assets/assets'
						}
					],
					footer: [{
							img: '../../static/footer/friend01.png'
						},
						{
							img: '../../static/footer/friend02.png'
						},
						{
							img: '../../static/footer/friend03.png'
						},
						{
							img: '../../static/footer/friend04.png'
						},
						{
							img: '../../static/footer/friend05.png'
						},
						{
							img: '../../static/footer/friend06.png'
						},
						{
							img: '../../static/footer/friend07.png'
						},
						{
							img: '../../static/footer/friend08.png'
						}
					],
					other: [{
							img: '../../static/footer/other01.png'
						},
						{
							img: '../../static/footer/other02.png'
						},
						{
							img: '../../static/footer/other03.png'
						},
						{
							img: '../../static/footer/other04.png'
						},
						{
							img: '../../static/footer/other05.png'
						},
						{
							img: '../../static/footer/other06.png'
						},
					],
					tradingList:[],
					code:''

			};
		},
		mounted() {},
		onPullDownRefresh() {},
		onLoad(e) {
			let me = this;
			me.language = me.Lang.getLang();
			me.changeLanguage();
			if (!me.injected) me.linkWallet();
		},

		methods: {
			sliderChange(e) {
				let that = this;
				console.log('value 发生变化：' + e.detail.value);
				that.sliderShow = e.detail.value
				for(var i=0;i<that.fuwenPrice.length;i++){
					if(that.sliderShow >= that.fuwenPrice[i].fuwen_number){
						that.usdtNumber = that.fuwenPrice[i].user_number
						that.lsdNumber = that.usdtNumber / that.usdt_change_lsd;
						break;
					}
				}
				that.usdtNumberCount = (that.sliderShow * that.usdtNumberBefore).toFixed(5);
				that.lsdNumberCount = (that.sliderShow * that.lsdNumber).toFixed(5);
			},
			
				copyText(e){
					let me = this;
					uni.setClipboardData({
						data: e.currentTarget.dataset.txt,
						success: function () {
							uni.showToast({
								title:me.Lang.lang('copyOk'),
								icon:'none'
							})
						}
					});
				}, 
				changeLanguage(){
					let me=this;
					for(var i=0;i<me.navlist.length;i++){
						if(i==0){
							me.navlist[i].name = me.Lang.lang('home')
						}else if(i==1){
							me.navlist[i].name = me.Lang.lang('transaction')
						}else if(i==2){
							me.navlist[i].name = me.Lang.lang('flashExchange')
						}else if(i==3){
							me.navlist[i].name = me.Lang.lang('team')
						}else if(i==4){
							me.navlist[i].name = me.Lang.lang('withdrawalofcoins')
						}else if(i==5){
							me.navlist[i].name = me.Lang.lang('asset')
						}
					}
					
				},
				changeLsd(){
					let me = this;
					me.lsdInput = me.usdtInput * me.usdt_change_lsd;
				},
				async buyfuwen(){
					let me = this;
					if(!me.usdtNumberCount){
						me.He.Fail(me.Lang.lang('prompt_1'));
						return;
					}
					if(!me.lsdNumberCount){
						me.He.Fail(me.Lang.lang('prompt_2'));
						return;
					}
					
					//先判断下usdt余额是否充足,充足的话就直接购买,不足的话就先充值再购买
					 me.He._post(
						'/api/service/usdtEnough',
						{'fuwen':me.sliderShow},
						true,
						async res => {
							if (res.code == 200) {
								//充足
								// me.buyfuwen1(fuwen);
								//直接调
								//判断下lsd是否充足
								me.He._post(
									'/api/service/lsdEnough',
									{'fuwen':me.sliderShow},
									true,
									async res => {
										if (res.code == 200) {
											//充足
											 me.buyfuwen1(me.sliderShow);
										} else {
											//不充足，就先充值lsd再继续购买
											if(me.He.isLogin() == false) {
												me.He.Fail(me.Lang.lang('prompt_5'));
												return false;
											}
											//开始调钱包充值
											let lsdBB = me.lsdNumberCount;
											let hash = await me.He.lsdTransfer(me.address,me.receiver,'0xcD1B51b87a8a7137D6421bA5A976225187a26777',lsdBB+'','/api/service/rechargeLSD',me.sliderShow);
											if(!hash || hash=='undefined'){
												
											}else{
												await me.getUsdtBalance();
												await me.getLsdBalance();
												me.getUserInfo();
												//判断下lsd 是否充足
												
											}
										}
									},
									true
								);
							} else {
								//不充足，就先充值usdt再继续购买
								if(me.He.isLogin() == false) {
									me.He.Fail(me.Lang.lang('prompt_5'));
									return false;
								}
								//开始调钱包充值
								let usdtBB = me.usdtNumberCount;
								let hash = await me.He.usdtTransfer(me.address,me.receiver,usdtBB+'','/api/service/rechargeUSDT',me.sliderShow);
								if(!hash || hash=='undefined'){
									
								}else{
									// await me.getUsdtBalance();
									// me.getUserInfo();
									//判断下lsd 是否充足
									me.He._post(
										'/api/service/lsdEnough',
										{'fuwen':me.sliderShow},
										true,
										async res => {
											if (res.code == 200) {
												//充足
												 me.buyfuwen1(me.sliderShow);
											} else {
												//不充足，就先充值lsd再继续购买
												if(me.He.isLogin() == false) {
													me.He.Fail(me.Lang.lang('prompt_5'));
													return false;
												}
												//开始调钱包充值
												let lsdBB = me.lsdNumberCount;
												let hash = await me.He.lsdTransfer(me.address,me.receiver,'0xcD1B51b87a8a7137D6421bA5A976225187a26777',lsdBB+'','/api/service/rechargeLSD',me.sliderShow);
												if(!hash || hash=='undefined'){
													
												}else{
													await me.getUsdtBalance();
													await me.getLsdBalance();
													me.getUserInfo();
													//判断下lsd 是否充足
													
												}
											}
										},
										true
									);
								}
							}
						},
						true
					);
				},
				buyfuwen1(_fuwen){
					let me = this;
					me.He._post(
						'/api/service/buyRune',
						{number:_fuwen},
						true,
						res => {
							if (res.code == 200) {
								me.getUserInfo();
								this.He.Success(me.Lang.lang('prompt_4'));
							} else {
								this.He.Fail(res.msg);
							}
						},
						true
					);
				},
				getUserInfo(){
					let me = this;
					me.He._post(
						'/api/service/userInfo',
						{},
						true,
						res => {
							if (res.code == 200) {
								var data = res.data;
								me.usdt_change_lsd = data.usdt_change_lsd;
								for(var i=0;i<data.fuwenPrice.length;i++){
									if(me.sliderShow >= data.fuwenPrice[i].fuwen_number){
										me.usdtNumber = data.fuwenPrice[i].user_number
										me.lsdNumber = me.usdtNumber / me.usdt_change_lsd;
										break;
									}
								}
								me.usdtNumberBefore = data.fuwenPrice[data.fuwenPrice.length-1].user_number;
								me.usdtNumberCount = (me.sliderShow * me.usdtNumberBefore).toFixed(5);
								me.lsdNumberCount = (me.sliderShow * me.lsdNumber).toFixed(5);
								me.fuwenPrice = data.fuwenPrice;
								me.receiver = data.receiver;
								me.code = data.code;
								me.shareUrl=me.share_url();
							} else {
								this.He.Fail(res.msg);
							}
						},
						true
					);
				},
				async getUsdtBalance(){
					let me = this;
					var balance = await me.He.contractUsdtInit(me.address);
					me.usdtBalance = Number(balance).toFixed(4);
				},
				async getLsdBalance(){
					let me = this;
					var balance = await me.He.contractLsdInit(me.address);
					me.lsdBalance = Number(balance).toFixed(4);
				},
				maskChange(_flag){
					this.mask = _flag;
				},
				share_url(){
					let me=this
					if(me.address){
						var url=me.He.getWapShareUrl(false,me.code);
					}
					return url
				},
				copyMoneyUrl() {
					let that = this
					uni.setClipboardData({
						data: that.urldata,
						success: function() {
							that.Msg.Success('复制成功');
						},
						fail: function(error) {
							that.Msg.Fail('复制失败');
						}
					});
				},
				choiceBsc: function(e) {
					let that = this;
					that.bscIndex = e.target.value;
					that.bscText = that.bscData[that.bscIndex].name;
					// uni.setStorageSync('_language', lang);
					// that.loadData();
				},
				choiceLang: function(e) {
					let that = this;
					that.langIndex = e.target.value;
					let lang = that.Lang.lang('langData')[that.langIndex].type;
					uni.setStorageSync('_language', lang);
					location.reload()
				},
				loadData() {
					let me = this;
					if (!me.injected) me.linkWallet();
					me.He._get('main', {}, true, res => {});
				},
				autoListPage() {
					let that = this;
					that.pupu = !that.pupu;
				},
				autoSignin() {
					let that = this;
					that.login = !that.login;
				},
				gotopage(e) {
					var that = this;
					let url = e.currentTarget.dataset.url;
					//console.log(url);
					uni.navigateTo({
						url: url
					});
				},
				backPage() {
					uni.navigateBack({});
				},
				getLoginDate(){
					let me = this;
					let address = me.address;
					let url = window.location.href;
					if(url.indexOf("?u=") == -1){
						url = '';
					}else{
						if(url.indexOf("#") != -1){
							url = url.substring(0,url.indexOf("#"));
						}
						if(url.indexOf("&") != -1){
							url = url.substring(url.indexOf("?u=")+3,url.indexOf("&"));
						}else{
							url = url.substring(url.indexOf("?u=")+3,url.length);
						}
						
					}
					me.inviteId = url;
				},
				async linkWallet() {
					let me = this;
					if (me.injected) return false;
					if (!me.injected) {
						var account = await me.He.getAccount();
						var fireContract = await me.He.contractInit();
						if(account){
							me.address = account.address;
							
							let address=me.He.isLogin();
							me.myAddress = me.address;
							me.getLoginDate();
							if(me.He.getAddress() != me.address){
								me.login_win = true;
							}else{
								me.login_win = false;
								me.register();
							}
						}else {
							me.injectTimes++;
							if (me.injectTimes > 20) {
								console.log('钱包地址注入失败')
								return false;
							} else {
								console.log('钱包地址注入重试'+me.injectTimes)
								setTimeout(() => {
									me.linkWallet();
								}, 500)
							}
						}
				
					} else {
						me.injectTimes++;
						if (me.injectTimes > 20) {
							console.log('钱包地址注入失败')
							//非DAPP环境 无法操作 跳转到空白提示页
							
							return false;
						} else {
							console.log('钱包地址注入重试'+me.injectTimes)
							setTimeout(() => {
								me.linkWallet();
							}, 1000)
						}
					}
				},
				register() {
					let me = this;
					me.He._post(
						'/api/auth/register',
						{ address: me.myAddress, p_address: me.inviteId },
						true,
						res => {
							if (res.code == 200) {
								// this.He.Success(res.msg);
								me.He.login(res.data.access_token,me.address);
								
								
								if(me.He.isLogin() != false && me.He.getAddress() != false){
									me.subAddress = me.address.substring(0,5)+"....."+me.address.substring(38,me.address.length);
								}
								
								me.login_win = false;
								
								me.injected = true;
								
								me.getUserInfo();
								me.exchangeList();
								me.getUsdtBalance();
								me.getLsdBalance();
								// me.nodeList();
								// me.shibhPriceList();
								// me.noticeList();
							} else {
								this.He.Fail(res.msg);
							}
						},
						true
					);
				},
				exchangeList() {
						let me = this;
						me.He._post(
							'/api/service/exchangeList',
							{ type:5},
							true,
							res => {
								if (res.code == 200) {
									me.tradingList = res.data.data;
								} else {
									this.He.Fail(res.msg);
								}
							},
							true
						);
					},
		},
		onPageScroll: function(Object) {
			//console.log(Object.scrollTop); //实时获取到滚动的值
			if (Object.scrollTop > 25) {
				this.scroll = true;
			} else if (Object.scrollTop < 25) {
				this.scroll = false;
			}
		}
	};
</script>

<style lang="scss" scoped>
	.content_box {
		width: 92%;
		margin: 0 auto;
		padding: 4vw 4%;
		background: linear-gradient(to bottom, #292929, #1B1B1B);
	}

	.trading_box {
		width: 100%;
		padding-bottom: 10vw;
		border-radius: 3vw;
		border: 1px solid #424242;
		box-sizing: border-box;
		background-color: #242424;
	}

	.trading_box .trading_title {
		height: 15vw;
		width: 100%;
		text-align: center;
		line-height: 15vw;
		font-size: 5vw;
		color: #fff;
		font-weight: bold;
		border-bottom: 1px dashed #5C5C5C;
	}

	.trading_box .trading_content {
		width: 100%;
		padding: 4vw 5vw 0;
		box-sizing: border-box;
	}


	.trading_box .trading_content .slider {
		width: 100%;
		box-sizing: border-box;
	}

	.trading_box .trading_content .slider slider {
		width: 100%;
		margin: 0;
	}

	/deep/ .uni-slider-handle-wrapper{
	 height:40rpx !important;
	 border-radius: 2vw;
	}
	
	.trading_box .trading_content .slider_text{
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-top: 3vw;
	}
	
	.trading_box .trading_content .slider_text .text{
		font-size: 3vw;
		color: #fff;
	}
	
	.trading_box .trading_content .slider_show{
		width: 100%;
		background-color: #000000;
		height: 13.5vw;
		border-radius: 2vw;
		margin-top: 3vw;
		display: flex;
		align-items: center;
	}
	
	.trading_box .trading_content .slider_show input{
		flex: 1;
		font-size: 4.5vw;
		font-weight: bold;
		color: #fff;
		text-align: right;
	}
	
	.trading_box .trading_content .slider_show .text{
		flex: 1;
		font-size: 4.5vw;
		font-weight: bold;
		color: #fff;
		text-align: left;
	}
	
	.trading_box .trading_content .compare_title{
		width: 100%;
		display: flex;
		align-items: center;
		margin-top: 10vw;
	}
	
	.trading_box .trading_content .compare_title .title{
		flex: 1;
		display: flex;
		align-items: center;
	}
	
	.trading_box .trading_content .compare_title .title:nth-child(2){
		justify-content: flex-end;
	}
	
	.trading_box .trading_content .compare_title .title .icon{
		width: 6vw;
	}
	
	.trading_box .trading_content .compare_title .title .icon image{
		width: 100%;
	}
	
	.trading_box .trading_content .compare_title .title .text{
		font-size: 3.8vw;
		color: #fff;
		font-weight: bold;
	}
	
	.trading_box .trading_content .compare_title .title:nth-child(1) .icon{
		margin-right: 2vw;
	}
	
	.trading_box .trading_content .compare_title .title:nth-child(2) .icon{
		margin-left: 2vw;
	}
	
	.trading_box .trading_content .convert_box{
		width: 100%;
		margin-top: 2vw;
	
	}
	
	.trading_box .trading_content .convert_box .convert{
		flex: 1;
		background-color: #666666;
		border-radius: 6vw;
		height: 13vw;
		
	}
	
	.trading_box .trading_content .convert_box .convert input{
		width: 100%;
		height: 100%;
		line-height: 15vw;
		font-size: 3.5vw;
		color: #fff;
		text-align: center;
		font-weight: bold;
	}
	
	.trading_box .trading_content .convert_box image{
		width: 12vw;
		margin: 4vw auto;
		
	}
	
	.trading_box .trading_content .convert_box .rule{
		font-size: 3.2vw;
		color: #BEBEBE;
		margin-top: 2vw;
	}
	.mask{
		width: 100%;
		position: fixed;
		z-index: 99;
		top: 0;
		height: 100vh;
		left:0;
		background: rgba(0, 0, 0, 0.7);
		.m_box{
			width: 100%;
			height: 100%;
			display: flex;
			justify-content: center;
			align-items: center;
			padding: 0 5% 3vh;
			.m_item{
				width: 100%;
				padding: 5vw 8vw 7vw;
				background: #ffffff;
				border-radius: 4vw;
				text-align: center;
				position: relative;
				.m_tit{
					font-size: 30rpx;
					font-weight: bold;
					width: 100%;
				}
				.m_qr_itme{
					width: 80%;
					margin: 6vw 10%;
					padding: 4vw 0;
					border: 1rpx solid #257BF9;
					border-radius: 20rpx;
					display: flex;
					justify-content: center;
					align-items: center;
					.qr_code{
						width: 40vw;
						height: 40vw;
					}
				}
				.m_t1{
					width: 100%;
					font-size: 26rpx;
					color: #666666;
					font-weight: bold;
				}
				.m_t2{
					width: 100%;
					padding: 30rpx 0 50rpx;
					font-size: 26rpx;
					font-weight: bold;
					word-wrap: break-word;
				}
				.btn{
					width: 90%;
					margin-left: 5%;
					text-align: center;
					padding: 3vw 0;
					border-radius: 20rpx;
					background: #257BF9;
					color: #ffffff;
					font-size: 30rpx;
				}
				.close{
					position: absolute;
					right: 4vw;
					top: 4vw;
					font-size: 35rpx;
				}
				.input_box{
					width: 100%;
					padding: 50rpx 0;
					.input_item{
						width: 100%;
						margin-top: 20rpx;
						.i_txt{
							width: 100%;
							text-align: left;
							font-size: 26rpx;
							padding-bottom: 10rpx;
							color: #333333;
						}
						.i_box{
							height: 12vw;
							width: 100%;
							padding: 0 15rpx;
							font-size: 28rpx;
							color: #333333;
							background: #f9f9f9;
							border-radius: 15rpx;
						}
					}
				}
			}
		}
	}
	.menu001{
		width: 90%;
		margin-left: 5%;
		text-align: center;
		padding: 3vw 0;
		border-radius: 20rpx;
		background: #257BF9;
		color: #ffffff;
		font-size: 30rpx;
	}
	
	.team_list{
		width: 100%;
		height: 13vw;
		display: flex;
		align-items: center;
		background-color: #212121;
		box-sizing: border-box;
		border-bottom: 1px solid #262626;
	}
	
	.team_top{
		background-color: #303030 !important;
		margin-top: 4%;
		border-radius: 4vw 4vw 0 0;
	}
	
	.team_list view{
		color: #B3B4B4;
		font-size: 3.3vw;
		flex: 1;
		text-align: center;
	}
	
	.team_top view{
		color: #fff;
		font-size: 3.5vw;
	}
	
	.list_auto{
		width: 100%;
		height: 53vh;
		overflow: hidden;
		overflow-y: auto;
		background-color: #212121;
		border-radius: 0 0 4vw 4vw;
	}
	
	.list_auto .team_list:last-child{
		border-radius: 0 0 4vw 4vw;
	}
	
	.page_title .title {
		font-size: 4vw;
		color: #fff;
		font-weight: bold;
	}
	.page_title {
		width: 100%;
		display: flex;
		align-items: center;
		margin-top: 6vw;
	}
	
</style>